<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<table class="table4">
	<c:forEach items="${fundFlowList}" var="fundFlow">
		<tr class="td1">
			<td style="width: 200px; text-align: center;"><fmt:formatDate value="${fundFlow.createdAt }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			<td style="width: 200px; text-align: center;">
				<c:if test="${fundFlow.type == 10 }">
					<img src="${staticPath}/images/chongzhi.png">
				</c:if>
				<c:if test="${fundFlow.type == 20}">
					<img src="${staticPath}/images/tixian.png">
				</c:if>
				<c:if test="${fundFlow.type == 21}">
					<img src="${staticPath}/images/tixian_fail.png">
				</c:if>
				<c:if test="${fundFlow.type == 13 }">
					<img src="${staticPath}/images/tuandui.png">
				</c:if>
				<c:if test="${fundFlow.type == 30 || fundFlow.type == 31 || fundFlow.type == 50 || fundFlow.type == 51 || fundFlow.type == 70 || fundFlow.type == 71}">
					<img src="${fundFlow.member.avatar }" onerror="this.src='${staticPath}/images/nologin.png'">
				</c:if>
				<c:if test="${fundFlow.type == 60 || fundFlow.type == 61 || fundFlow.type == 11 || fundFlow.type == 12}">
					<img src="${fundFlow.fromMember.avatar }" onerror="this.src='${staticPath}/images/nologin.png'">
				</c:if>
			</td>
			<td style="width: 250px; text-align: center;">
				<c:if test="${fundFlow.type == 50 || fundFlow.type == 51 || fundFlow.type == 60 || fundFlow.type == 61 || fundFlow.type == 70}">
					${fundFlow.amount }积分
				</c:if>
				<c:if test="${fundFlow.type != 50 && fundFlow.type != 51 && fundFlow.type != 60 && fundFlow.type != 61 && fundFlow.type != 70}">
					￥<fmt:formatNumber value="${fundFlow.amount * 0.01}" pattern="#,###.##" />
				</c:if>
				<c:if test="${fundFlow.type == 10 }">
					(充值)
				</c:if>
				<c:if test="${fundFlow.type == 11}">
					(会员分佣)
				</c:if>
				<c:if test="${fundFlow.type == 12}">
					(订单分佣)
				</c:if>
				<c:if test="${fundFlow.type == 13 }">
					(团队奖励)
				</c:if>
				<c:if test="${fundFlow.type == 20}">
					(提现)
				</c:if>
				<c:if test="${fundFlow.type == 21}">
					(提现失败)
				</c:if>
				<c:if test="${fundFlow.type == 30}">
					(购买商品)
				</c:if>
				<c:if test="${fundFlow.type == 31}">
					(购买商品退款)
				</c:if>
				<c:if test="${fundFlow.type == 50 || fundFlow.type == 51}">
					(订单积分)
				</c:if>
				<c:if test="${fundFlow.type == 60}">
					(推广积分)
				</c:if>
				<c:if test="${fundFlow.type == 61}">
					(返佣积分)
				</c:if>
				<c:if test="${fundFlow.type == 70 || fundFlow.type == 71}">
					(积分兑换现金)
				</c:if>
			</td>
			<td style="width: 250px; text-align: center;">
				<c:if test="${fundFlow.code != null }">
					订单号${fundFlow.code }
				</c:if>
			</td>
		</tr>
	</c:forEach>
</table>
<input type="hidden" id="pageCount" value="${count}" />
